package com.terios.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.terios.conts.CommonStrs;

/**
 * LoginOpenHelper.java 2012-10-7 上午11:12:19
 * 
 * @author Wang Tengrui
 */
public class AuthorizeUserOpenHelper extends SQLiteOpenHelper
{

	public AuthorizeUserOpenHelper(Context context)
	{
		super(context, CommonStrs.DATABASE_NAME, null,
				CommonStrs.DATABASE_VERSION);

	}

	@Override
	public void onCreate(SQLiteDatabase db)
	{
		db.execSQL("create table "
				+ CommonStrs.AUTHORIZE_USER_TABLE_NAME
				+ " (id integer primary key autoincrement,uid varchar(20),screen_name varchar(50),access_token varchar(50),expires_in varchar(50),usericon blob,expires_date varchar(50))");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
	{

	}

}
